home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_10.lha / 7_10 / qh_des.c < prev    next >
Text File  |  1993-08-08  |  565b  |  21 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <process.h>
  6. include <debug.h>    /* DELETE */
  7. / delete the queue_head and also the process_queue
  8. / if it is not also pointed to by a queue_tail
  9. ueue_head::~queue_head()
  10.  
  11.    if (debug) /*DELETE*/ cerr << "queue_head" << this << "::~queue_head()\n";
  12.    process_queue *q = qh_queue;
  13.  
  14.    if (q->q_tail)
  15. q->q_head = 0;
  16.  
  17.    else
  18. delete q;
  19.    if (debug) /*DELETE*/ cerr << "<<<< queue_head" << this << "::~queue_head()\n";
  20.  
  21.